import request from '/@/utils/request'
// 查询萤石云设备状态日志列表
export function listYs7CameraStatusLog(query:object) {
  return request({
    url: '/api/v1/system/ys7CameraStatusLog/list',
    method: 'get',
    params: query
  })
}
// 查询萤石云设备状态日志详细
export function getYs7CameraStatusLog(id:number) {
  return request({
    url: '/api/v1/system/ys7CameraStatusLog/get',
    method: 'get',
    params: {
      id: id.toString()
    }
  })
}
// 新增萤石云设备状态日志
export function addYs7CameraStatusLog(data:object) {
  return request({
    url: '/api/v1/system/ys7CameraStatusLog/add',
    method: 'post',
    data: data
  })
}
// 修改萤石云设备状态日志
export function updateYs7CameraStatusLog(data:object) {
  return request({
    url: '/api/v1/system/ys7CameraStatusLog/edit',
    method: 'put',
    data: data
  })
}
// 删除萤石云设备状态日志
export function delYs7CameraStatusLog(ids:number[]) {
  return request({
    url: '/api/v1/system/ys7CameraStatusLog/delete',
    method: 'delete',
    data:{
      ids:ids
    }
  })
}
// 关联ys7_cameras表选项
export function listYs7Cameras(query:object){
   return request({
     url: '/api/v1/system/ys7Cameras/list',
     method: 'get',
     params: query
   })
}
